package com.softtown.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 公司角色-数据范围
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-17 12:04
 **/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_sys_role_data_scrope")
public class CompSysRoleDataScropeEntity extends BaseEntity {
    private static final Long serialVersionUID = 1L;

    /**
     * 公司所属id
     * isNullAble:0
     */
    private Long compId;

    /**
     * 角色id
     * isNullAble:0
     */
    private Long roleId;

    /**
     * 部门id
     * isNullAble:1
     */
    private Long deptId;

    /**
     * 更新者
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    private Integer isDeleted;
}

